package com.shiguiwu.springmybatis.designpattern.adapter;

/**
 * @description: vlc播放器
 * @author: stone
 * @date: Created by 2021/2/23 16:44
 * @version: 1.0.0
 * @pakeage: com.shiguiwu.springmybatis.designpattern.adapter
 */
public class VlcPlayer implements AdvancedMediaPlayer{
    @Override
    public void playMp4(String fileName) {
        System.err.println("不支持播放MP4格式的媒体。。。。。");
        throw new UnsupportedOperationException("不支持播放MP4格式的媒体");
    }

    @Override
    public void playVlc(String fileName) {
        System.out.println("播放vlc类型的媒体。。。。。" + fileName);

    }
}
